package com.plus;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.InitBinder;


@SpringBootApplication
public class PlusApplication {

    private static String prot;


    @Value("server.port")
    private String prot_;

    @InitBinder
    public void init(){
        this.prot = prot_;
    }


    public static void main(String[] args) {
        SpringApplication.run(PlusApplication.class, args);
        System.out.println(String.format("\nhttp://localhost:8899/api/welcome/hello\n",prot));
    }
}
